<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="page" uri="http://www.aptech.com/pager"%>
<!DOCTYPE html>
<html>
<head>
<!--
		Charisma v1.0.0

		Copyright 2012 Muhammad Usman
		Licensed under the Apache License v2.0
		http://www.apache.org/licenses/LICENSE-2.0

		http://usman.it
		http://twitter.com/halalit_usman
	-->
<meta charset="utf-8">
<title>后台管理系统</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description"
	content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
<meta name="author" content="Muhammad Usman">
<script src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
<!-- The styles -->
<link id="bs-css" href="css/bootstrap-cerulean.css" rel="stylesheet">
<style type="text/css">
body {
	padding-bottom: 40px;
}

.sidebar-nav {
	padding: 9px 0;
}

.pagesshow {
	color: blue;
	font-weight: bold;
}
#printpageinfo{
 text-align:right;
 float:right;
}
.packageOfusername{
width: 100px;
height: 50px;
padding-top:10px;
border: 0px;
}
</style>
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/charisma-app.css" rel="stylesheet">
<link href="css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
<link href='css/fullcalendar.css' rel='stylesheet'>
<link href='css/fullcalendar.print.css' rel='stylesheet' media='print'>
<link href='css/chosen.css' rel='stylesheet'>
<link href='css/uniform.default.css' rel='stylesheet'>
<link href='css/colorbox.css' rel='stylesheet'>
<link href='css/jquery.cleditor.css' rel='stylesheet'>
<link href='css/jquery.noty.css' rel='stylesheet'>
<link href='css/noty_theme_default.css' rel='stylesheet'>
<link href='css/elfinder.min.css' rel='stylesheet'>
<link href='css/elfinder.theme.css' rel='stylesheet'>
<link href='css/jquery.iphone.toggle.css' rel='stylesheet'>
<link href='css/opa-icons.css' rel='stylesheet'>
<link href='css/uploadify.css' rel='stylesheet'>

<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

<!-- The fav icon -->
<link rel="shortcut icon" href="img/favicon.ico">

</head>

<body>
	<jsp:include page="header.jsp" />
	<!-- topbar ends -->
	<div class="container-fluid">
		<div class="row-fluid">

			<s:include value="left.jsp" />

			<noscript>
				<div class="alert alert-block span10">
					<h4 class="alert-heading">Warning!</h4>
					<p>
						You need to have <a href="http://en.wikipedia.org/wiki/JavaScript"
							target="_blank">JavaScript</a> enabled to use this site.
					</p>
				</div>
			</noscript>

			<div id="content" class="span10">
				<!-- content starts -->


				<div>
					<ul class="breadcrumb">
						<li><a href="index">主页</a> <span class="divider">/</span></li>
						<li><a href="#">快件信息</a></li>
						<li>/<a href="#"><s:property value="branchName" /></a></li>
						<li id="printpageinfo"><a href="#" class="printpageinfo" >打印本页信息</a></li>
					</ul>
				</div>
				<div class="row-fluid sortable ui-sortable">
					<div class="box span12">
						<div class="box-header well" data-original-title="">
							<h2>
								<i class="icon-edit"></i> 条件查询
							</h2>
							<div class="box-icon">
								<a href="#" class="btn btn-setting btn-round"><i
									class="icon-cog"></i></a> <a href="#"
									class="btn btn-minimize btn-round"><i
									class="icon-chevron-up"></i></a> <a href="#"
									class="btn btn-close btn-round"><i class="icon-remove"></i></a>
							</div>
						</div>
						<div class="box-content">
							<fieldset>
								<div style="width: 100%; height: 30px;">
									<div style="width: 65px;; float: left; text-align: right;">
										<label class="control-label" for="typeahead">查询终端:</label>
									</div>
									<div style="width: 87%; float: left;">
										<s:iterator value="terminals" var="terminal">
											&nbsp;&nbsp;<input type="checkbox" class="choiceTerminals"
												value="<s:property value="#terminal.terminalId"/>" />
											<s:property value="#terminal.name" />
										</s:iterator>
									</div>
								</div>
								<div style="width: 100%; height: 30px;">
									<div style="width: 65px; float: left; text-align: right;">
										<label class="control-label" for="typeahead">包裹状态:</label>
									</div>
									<div style="width: 87%; float: left;">
									&nbsp;&nbsp;<input type="checkbox" class="allcheck" />全选
										&nbsp;&nbsp;<input type="checkbox" value="0"
											class="packagestatus" />未取&nbsp;&nbsp;<input type="checkbox"
											value="1" class="packagestatus" />已取&nbsp;&nbsp;<input type="checkbox"
											value="4" class="packagestatus" />未处理&nbsp;&nbsp;<input type="checkbox"
											value="5" class="packagestatus" />已处理
									</div>
								</div>
								<!-- 存入时间 -->
								<div style="width: 100%; height: 30px;">
									<div
										style="width: 65px; float: left; text-align: right; padding-top: 8px;">
										<label class="control-label" for="typeahead">存入时间:</label>
									</div>
									<div style="width: 30%; float: left;">
										&nbsp;&nbsp;<input type="text" class="timesofpackage Wdate"
											id="starttime" data-items="2"
											onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd  HH:mm:ss',onpicked:function(){timechange();},oncleared:function(){clearTimes();}})" />
									</div>
									<div
										style="width:80px; float: left; text-align: right; padding-top: 8px;">
										<label class="control-label" for="typeahead">- 结束时间：</label>
									</div>
									<div style="width: 55%; float: left;">
										<input type="text" class="timesofpackage Wdate" id="endtime"
											data-items="2"
											onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd  HH:mm:ss',onpicked:function(){timechange();},oncleared:function(){clearTimes();}})" />
									</div>
								</div>
								<!-- 取出时间 -->
								<div style="width: 100%; height: 30px;" id="gettimeOfpackage">
									<div
										style="width: 65px; float: left; text-align: right; padding-top: 8px;">
										<label class="control-label" for="typeahead">取出时间:</label>
									</div>
									<div style="width: 30%; float: left;">
										&nbsp;&nbsp;<input type="text" class="timesofpackage Wdate"
											id="starttimequ" data-items="2"
											onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd  HH:mm:ss',onpicked:function(){timechanges();},oncleared:function(){clearTime();}})" />
									</div>
									<div
										style="width:80px; float: left; text-align: right; padding-top: 8px;">
										<label class="control-label" for="typeahead">- 结束时间：</label>
									</div>
									<div style="width: 55%; float: left;">
										<input type="text" class="timesofpackage Wdate" id="endtimequ"
											data-items="2"
											onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd  HH:mm:ss',onpicked:function(){timechanges();},oncleared:function(){clearTime();}})" />
									</div>
								</div>
								<div style="width: 100%; height: 30px;">
									<div
										style="width:65px; float: left; text-align: right; padding-top: 8px;">
										<label class="control-label" for="typeahead">搜索:</label>
									</div>
									<div style="width: 87%; float: left;">
										&nbsp;&nbsp;<input type="text" class="typeahead" id="search"
											data-items="2" />
									</div>
								</div>
							</fieldset>
						</div>
					</div>
					<!--/span-->

				</div>
				<input type="hidden" value="desc" class="sortrule" part="p.getTime"/>
				<input type="hidden" value="desc" class="sortrule" part="p.boxId"/>
				<input type="hidden" value="desc" class="sortrule" part="p.userPhone"/>
				<input type="hidden" value="desc" class="sortrule" part="p.parcelId"/>
				<input type="hidden" value="desc" class="sortrule" part="p.storeTime"/>
				<input type="hidden" value="desc" class="sortrule" part="timestampdiff(SECOND,p.getTime,p.storeTime)"/>
				<div class="packagepages">
					<table class="table table-striped table-bordered bootstrap-datatable ">
						<thead>
							<tr role="row">
								<th class="sorting_asc" role="columnheader" tabindex="0"
									aria-controls="DataTables_Table_0" rowspan="1" colspan="1">序号</th>
								<th class="sorting" role="columnheader" tabindex="0"
									aria-controls="DataTables_Table_0" rowspan="1" colspan="1" onclick="packsort('p.terminal.name',this)" sortrule="desc">终端名称</th>
								<th class="sorting" role="columnheader" tabindex="0"
									aria-controls="DataTables_Table_0" rowspan="1" colspan="1" onclick="packsort('p.boxId',this)" sortrule="desc">柜号</th>
								<th class="sorting" role="columnheader" tabindex="0"
									aria-controls="DataTables_Table_0" rowspan="1" colspan="1" onclick="packsort('p.userPhone',this)" sortrule="desc">用户手机</th>
								<th class="sorting" role="columnheader" tabindex="0"
									aria-controls="DataTables_Table_0" rowspan="1" colspan="1" >用户名</th>
								<th class="sorting" role="columnheader" tabindex="0"
									aria-controls="DataTables_Table_0" rowspan="1" colspan="1" onclick="packsort('p.parcelId',this)" sortrule="desc">快递单号</th>
								<th class="sorting" role="columnheader" tabindex="0"
									aria-controls="DataTables_Table_0" rowspan="1" colspan="1" onclick="packsort('p.storeTime',this)" sortrule="desc">存入时间</th>
								<th class="sorting" role="columnheader" tabindex="0"
									aria-controls="DataTables_Table_0" rowspan="1" colspan="1" onclick="packsort('p.getTime',this)" sortrule="desc">取出时间</th>
								<th class="sorting" role="columnheader" tabindex="0"
									aria-controls="DataTables_Table_0" rowspan="1" colspan="1" onclick="packsort('timestampdiff(SECOND,p.getTime,p.storeTime)',this)" sortrule="desc">滞留时间</th>
								<th class="sorting" role="columnheader" tabindex="0"
									aria-controls="DataTables_Table_0" rowspan="1" colspan="1">验证码</th>
								<th class="sorting" role="columnheader" tabindex="0"
									aria-controls="DataTables_Table_0" rowspan="1" colspan="1">操作</th>
							</tr>
						</thead>

						<tbody>
							<s:iterator value="page.list" status="st">
								<tr class="odd">
									<td style="line-height:60px;"><s:property value="#st.index+1" /></td>
									<td class="center" style="line-height:60px;"><s:property value="terminal.name" /></td>
									<td class="center " style="line-height:60px;"><s:property value="boxId" /></td>
									<td class="center " style="line-height:60px;"><s:property value="userPhone" /></td>
									<td class="center " style="line-height:60px;"><iframe class="packageOfusername" src="getUntakenParcel!getPackageInfos?packagenum=<s:property value="parcelId" />" scrolling="no" frameborder="0" ></iframe></td>
									<td class="center "><s:property value="parcelId" /><br/><img src="<%=request.getContextPath() %>/BarcodeServlet!doGet?msg=<s:property value="parcelId" />" height="50px" width=130px/></td>
									<td class="center" style="line-height:60px;"><s:date name="storeTime"
											format="yyyy-MM-dd HH:mm:ss" /></td>
									<td class="center" style="line-height:60px;"><s:date name="getTime"
											format="yyyy-MM-dd HH:mm:ss" /></td>
									<td class="center" style="line-height:60px;"><s:property value="leftTime" /></td>
									<td class="center" style="line-height:60px;"><s:property value="checkCode" /></td>
									<td class="center">
									  <a href="getPackageCourier?courierID=<s:property value="courier.courierId" />">存件人详情 </a><br/><br/>
									  <a href="javascript:void(0)" data-toggle="modal" data-target="#myModal" packnum="<s:property value="parcelId" />" class="waybill">运单详情</a>
									</td>
								</tr>
							</s:iterator>
						</tbody>
					</table>
					<p>
						总记录数：<span class="pagesshow">${page.total}</span>条&nbsp;总页数：<span
							class="pagesshow">${page.allPage}</span>页&nbsp;每页条数： <input
							type="hidden" id="branchId" value="${branchId }" /> <input type="hidden" id="curpage" value="${page.curpage}" /> <select
							class="typeahead" id="choicePagesize" style="width: 60px;">
							<s:iterator begin="1" step="1" end="10" status="index">
								<option value="<s:property value="(#index.index+1)*36"/>"
									<s:if test="(#index.index+1)*36==page.pageSize">selected="selected"</s:if>>
									<s:property value="(#index.index+1)*36" />
								</option>
							</s:iterator>
						</select>条&nbsp;当前第<span class="pagesshow">${page.curpage}/${page.allPage}</span>页&nbsp;
					</p>
					<div style="float: right; width: 630px;">
						<%-- <page:page pages="${page.allPage}"
							url="getUntakenParcel!getPackage" param="&branchId=${branchId}"
							curpage="${page.curpage}" pageIndex="7" total="${page.total}" pageSize="${page.pageSize }"/> --%>
					</div>
				</div>

				<!-- content ends -->
			</div>
			<!--/#content.span10-->
		</div>
		<!--/fluid-row-->

		<hr>
        <!-- 弹出层 -->
		<div class="modal hide fade" id="myModal">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">X</button>
				<h3>运单详情</h3>
			</div>
			<div class="modal-body">
				<div id="waybilldetails"></div>
			</div>
			<div class="modal-footer">
				<a href="#" class="btn" data-dismiss="modal">关闭</a>
			</div>
		</div>

		<s:include value="footer.jsp" />

	</div>
	
	
	<!--/.fluid-container-->

	<!-- external javascript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->

	<!-- jQuery -->
	<script type="text/javascript">
		$(function() {
			//选择页面显示数量，页大小
			$("#choicePagesize").live(
					"change",
					function() {
						var branchId = $("#branchId").val();
						var pageSize = $(this).val();
						$.post(
								"getUntakenParcel!getPackage?flag=2&curpage=1&branchId="
										+ branchId + "&pageSize=" + pageSize,
								function(v) {
									$(".packagepages").html(v);
								});
					});
			//搜索框事件
			$("#search").live(
					"keyup",
					function() {
						if ($(this).val() == "")
							return;
						var branchId = $("#branchId").val();
						var pageSize = $("#choicePagesize").val();
						var term = $(this).val();
						$.post(
								"getUntakenParcel!getPackage?flag=2&curpage=1&branchId="
										+ branchId + "&pageSize=" + pageSize
										+ "&term=" + term, function(v) {
									//alert(v);
									$(".packagepages").html(v);
								});
					});
			//选择查询终端
			$(".choiceTerminals").click(
					function() {
						var branchId = $("#branchId").val();
						var pageSize = $("#choicePagesize").val();
						var termainals = "";
						$(".choiceTerminals").each(function() {
							if (this.checked) {
								termainals += $(this).val() + "-";
							}
						});
						if (termainals != "")
							termainals = termainals.substring(0,
									termainals.length - 1);
						$.post(
								"getUntakenParcel!getPackage?flag=2&curpage=1&branchId="
										+ branchId + "&pageSize=" + pageSize
										+ "&termina=" + termainals,
								function(v) {
									// alert(v);
									$(".packagepages").html(v);
								});
					});
			//全选、全不选
			$(".allcheck").die().live("click",function(){
				if(this.checked){
					$(this).attr("checked","checked");
					 $(".packagestatus").each(function(){
					  $(this).attr("checked","checked");
				  }); 	
				}else{
					$(this).removeAttr("checked");
					$(".packagestatus").each(function(){
					  $(this).removeAttr("checked");
				   }); 
				}
				$(".packagestatus").click();
			});
			//选择包裹状态
			$(".packagestatus").click(
					function() {
						var branchId = $("#branchId").val();
						var pageSize = $("#choicePagesize").val();
						var termainals = "";
						$(".packagestatus").each(function() {
							if (this.checked) {
								termainals += $(this).val() + "-";
								if($(this).val()=="1"){
									/* $("#gettimeOfpackage").css("display","block"); */
								}
							}else{
								/* $("#gettimeOfpackage").css("display","none"); */
							}
						});
						if (termainals != "")
							termainals = termainals.substring(0,
									termainals.length - 1);
						$.post(
								"getUntakenParcel!getPackage?flag=2&curpage=1&branchId="
										+ branchId + "&pageSize=" + pageSize
										+ "&status=" + termainals, function(v) {
									// alert(v);
									$(".packagepages").html(v);
								});
					});
            //存入时间选择值改变 开始结束
			timechange = function() {
				var branchId = $("#branchId").val();
				var pageSize = $("#choicePagesize").val();
				var start = $("#starttime").val();
				var end = $("#endtime").val();
				if (start == "") {
					start = null;
					return;
				}
				if (end == "") {
					end = new Date().format("yyyy-MM-dd hh:mm:ss");
				}
				$.post("getUntakenParcel!getPackage?flag=2&curpage=1&branchId="
						+ branchId + "&pageSize=" + pageSize + "&startstime="
						+ start + "&endtime=" + end, function(v) {
					//alert(v);
					$(".packagepages").html(v);
				});

			}
			
			//取出时间选择值改变 开始结束
			timechanges = function() {
				var branchId = $("#branchId").val();
				var pageSize = $("#choicePagesize").val();
				var start = $("#starttimequ").val();
				var end = $("#endtimequ").val();
				if (start == "") {
					start = null;
					return;
				}
				if (end == "") {
					end = new Date().format("yyyy-MM-dd hh:mm:ss");
				}
				$.post("getUntakenParcel!getPackage?flag=2&curpage=1&branchId="
						+ branchId + "&pageSize=" + pageSize + "&gettimestartstime="
						+ start + "&gettimeendtime=" + end, function(v) {
					//alert(v);
					$(".packagepages").html(v);
				});

			}
			//清除取出时间，开始和结束
			clearTime=function(){
				var branchId = $("#branchId").val();
				var pageSize = $("#choicePagesize").val();
				var start = $("#starttimequ").val();
				var end = $("#endtimequ").val();
				if (end == "") {
					end = new Date().format("yyyy-MM-dd hh:mm:ss");
				}
				$.post("getUntakenParcel!getPackage?flag=6&curpage=1&branchId="
						+ branchId + "&pageSize=" + pageSize + "&gettimestartstime="
						+ start + "&gettimeendtime=" + end, function(v) {
					//alert(v);
					$(".packagepages").html(v);
				});
			}
			//清除存入时间 开始和结束
			clearTimes=function(){
				var branchId = $("#branchId").val();
				var pageSize = $("#choicePagesize").val();
				var start = $("#starttime").val();
				var end = $("#endtime").val();
				if (end == "") {
					end = new Date().format("yyyy-MM-dd hh:mm:ss");
				}
				$.post("getUntakenParcel!getPackage?flag=5&curpage=1&branchId="
						+ branchId + "&pageSize=" + pageSize + "&startstime="
						+ start + "&endtime=" + end, function(v) {
					//alert(v);
					$(".packagepages").html(v);
				});
			}
            //格式化系统当前时间
			Date.prototype.format = function(format) {
				var o = {
					"M+" : this.getMonth() + 1, //month 
					"d+" : this.getDate(), //day 
					"h+" : this.getHours(), //hour 
					"m+" : this.getMinutes(), //minute 
					"s+" : this.getSeconds(), //second 
					"q+" : Math.floor((this.getMonth() + 3) / 3), //quarter 
					"S" : this.getMilliseconds()
				//millisecond 
				}
				if (/(y+)/.test(format)) {
					format = format.replace(RegExp.$1,
							(this.getFullYear() + "")
									.substr(4 - RegExp.$1.length));
				}

				for ( var k in o) {
					if (new RegExp("(" + k + ")").test(format)) {
						format = format.replace(RegExp.$1,
								RegExp.$1.length == 1 ? o[k] : ("00" + o[k])
										.substr(("" + o[k]).length));
					}
				}
				return format;
			}
			
			
			//窗口显示之前的事件
			$("#myModal").on('shown', function () {
		         $.post("getUntakenParcel!getpPackageInfoOfNum?waybillnum="+packnum,function(v){
		        	// alert(v);
		            $("#waybilldetails").html(v);
		         });
			});
			//窗口隐藏之后
			$("#myModal").on('hidden', function () {
                
	        });
			var packnum="";
			//运单详情
			$(".waybill").live("click",function(){
				packnum=$(this).attr("packnum");
			});
			//打印预览当前页面信息
			$(".printpageinfo").click(function(){
				var pageSize = $("#choicePagesize").val();
				var curpage=$("#curpage").val();
				var branchId = $("#branchId").val();
				//alert(curpage);
				window.open("getUntakenParcel!printPackageInfo?curpage="+curpage+"&branchId="
					+ branchId + "&pageSize=" + pageSize);
			});
		});
		//排序
		function packsort(str,anode){
			var branchId = $("#branchId").val();
			var pageSize = $("#choicePagesize").val();
			var curpage=$("#curpage").val();
			var sort=str+"  ";
            $(".sortrule").each(function(){
            	if($(this).attr("part")==str){
            		sort+=$(this).val();
            		if($(this).val()=="desc"){
            			$(this).val("asc");
            		}else{
            			$(this).val("desc");
            		}
            	}
            });
			$.post("getUntakenParcel!getPackage?flag=2&curpage="+curpage+"&branchId="+ branchId + "&pageSize=" + pageSize+ "&sort=" + sort,function(v) {
				$(".packagepages").html(v);
			});
		}
		
		
	</script>
	<!-- jQuery UI -->
	<script src="js/jquery-ui-1.8.21.custom.min.js"></script>
	<!-- transition / effect library -->
	<script src="js/bootstrap-transition.js"></script>
	<!-- alert enhancer library -->
	<script src="js/bootstrap-alert.js"></script>
	<!-- modal / dialog library -->
	<script src="js/bootstrap-modal.js"></script>
	<!-- custom dropdown library -->
	<script src="js/bootstrap-dropdown.js"></script>
	<!-- scrolspy library -->
	<script src="js/bootstrap-scrollspy.js"></script>
	<!-- library for creating tabs -->
	<script src="js/bootstrap-tab.js"></script>
	<!-- library for advanced tooltip -->
	<script src="js/bootstrap-tooltip.js"></script>
	<!-- popover effect library -->
	<script src="js/bootstrap-popover.js"></script>
	<!-- button enhancer library -->
	<script src="js/bootstrap-button.js"></script>
	<!-- accordion library (optional, not used in demo) -->
	<script src="js/bootstrap-collapse.js"></script>
	<!-- carousel slideshow library (optional, not used in demo) -->
	<script src="js/bootstrap-carousel.js"></script>
	<!-- autocomplete library -->
	<script src="js/bootstrap-typeahead.js"></script>
	<!-- tour library -->
	<script src="js/bootstrap-tour.js"></script>
	<!-- library for cookie management -->
	<script src="js/jquery.cookie.js"></script>
	<!-- calander plugin -->
	<script src='js/fullcalendar.min.js'></script>
	<!-- data table plugin -->
	<script src='js/jquery.dataTables.min.js'></script>

	<!-- chart libraries start -->
	<script src="js/excanvas.js"></script>
	<script src="js/jquery.flot.min.js"></script>
	<script src="js/jquery.flot.pie.min.js"></script>
	<script src="js/jquery.flot.stack.js"></script>
	<script src="js/jquery.flot.resize.min.js"></script>
	<!-- chart libraries end -->
	<!-- select or dropdown enhancer -->
	<script src="js/jquery.chosen.min.js"></script>
	<!-- checkbox, radio, and file input styler -->
	<script src="js/jquery.uniform.min.js"></script>
	<!-- plugin for gallery image view -->
	<script src="js/jquery.colorbox.min.js"></script>
	<!-- rich text editor library -->
	<script src="js/jquery.cleditor.min.js"></script>
	<!-- notification plugin -->
	<script src="js/jquery.noty.js"></script>
	<!-- file manager library -->
	<script src="js/jquery.elfinder.min.js"></script>
	<!-- star rating plugin -->
	<script src="js/jquery.raty.min.js"></script>
	<!-- for iOS style toggle switch -->
	<script src="js/jquery.iphone.toggle.js"></script>
	<!-- autogrowing textarea plugin -->
	<script src="js/jquery.autogrow-textarea.js"></script>
	<!-- multiple file upload plugin -->
	<script src="js/jquery.uploadify-3.1.min.js"></script>
	<!-- history.js for cross-browser state change on ajax -->
	<script src="js/jquery.history.js"></script>
	<!-- application script for Charisma demo -->
	<script src="js/charisma.js"></script>


</body>
</html>